/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/phonecall.html#wxmakephonecallobject)
 */

export default function make_phone_call(phoneNumber: string) {
	return new Promise<boolean>((resolve, reject) => {
		wx.makePhoneCall({
			phoneNumber,
			fail() {
				reject(false);
			},
			success() {
				resolve(true);
			}
		});
	});
}
